package com.cloudptt.api.product.func.call.single;

import com.cloudptt.api.product.func.call.CallAttr;
import com.cloudptt.api.product.func.call.group.fsm.video.GroupCallMemberInfo;
import com.mcptt.db.model.AddrInfo;

import java.util.List;


public class CallInfo {
	public static final int InfoType_Group = 1;
	public static final int InfoType_Webrtc = 2;

	private CallAttr callAttr = null;
	private int callState;
	private int mediaState;
	private boolean hasVideo = false;

	public CallInfo(CallAttr callAttr, int callState, int mediaState, boolean hasVideo)
	{
		this.callAttr = callAttr;
		this.callState = callState;
		this.mediaState = mediaState;
		this.hasVideo = hasVideo;
	}
	
	public CallAttr getCallAttr() {
		return callAttr;
	}


	public int getCallState() {
		return callState;
	}
	public int getMediaState() {
		return mediaState;
	}
	public boolean isHasVideo() {
		return hasVideo;
	}

	public String toString()
	{
		StringBuffer strBuff = new StringBuffer("CallInfo:");
		strBuff.append("callState = ").append(callState).append(",");
		strBuff.append("mediaState = ").append(mediaState).append(",");
		strBuff.append("hasVideo = ").append(hasVideo).append(",");
		strBuff.append("callAttr = ").append(callAttr).append(".");
		return strBuff.toString();
	}
}
